package cn.shotsapp.shots.account.contract;


import cn.shotsapp.shots.common.BaseView;

public final class LoginContract {
    public interface Presenter {
        /**
         * request SMS code from Server
         * while send button pressed
         * @return if the SMS code is send
         * @param phoneNumber The phone number in edit text
         */
        void sendRequestCode(String phoneNumber);

        /**
         * check if the SMS code and phone number both match
         * update message about phone number
         * @return if matching
         * @param phoneNumber: The phone number in edit text
         * @param SMSCode: The SMS code in edit text
         */
        void checkMatch(String phoneNumber, String SMSCode);
    }

    public interface View extends BaseView<Presenter> {
        void switchToStory();
    }
}
